#include "Device.h"

CDevice::CDevice(void)
: m_ChannelID(0),m_CurrentState(NULL)
{
}

CDevice::~CDevice(void)
{
}

CDeviceState* CDevice::getState(void)
{
	return m_CurrentState;
}

void CDevice::setDeviceID(std::string id)
{
	m_DeviceID = id;
}

std::string CDevice::getDeviceID(void)
{
	return m_DeviceID;
}

void CDevice::setChannelID(int id)
{
	m_ChannelID = id;
}

int CDevice::getChannelID(void)
{
	return m_ChannelID;
}

bool CDevice::pickup()
{
	int ret = SsmPickup(m_ChannelID);
	if(ret == -1)
		return false;
	else
		return true;
}
